3.2.25 \(\int \frac {\log (d (e+f \sqrt {x})) (a+b \log (c x^n))^2}{x} \, dx\) [125]

3.2.25.1 Optimal result
3.2.25.2 Mathematica [A] (verified)
3.2.25.3 Rubi [A] (verified)
3.2.25.4 Maple [F]
3.2.25.5 Fricas [F]
3.2.25.6 Sympy [F(-1)]
3.2.25.7 Maxima [F]
3.2.25.8 Giac [F]
3.2.25.9 Mupad [F(-1)]

3.2.25.1 Optimal result

Integrand size = 28, antiderivative size = 145 \[ \int \frac {\log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2}{x} \, dx=\frac {\log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^3}{3 b n}-\frac {\log \left (1+\frac {f \sqrt {x}}{e}\right ) \left (a+b \log \left (c x^n\right )\right )^3}{3 b n}-2 \left (a+b \log \left (c x^n\right )\right )^2 \operatorname {PolyLog}\left (2,-\frac {f \sqrt {x}}{e}\right )+8 b n \left (a+b \log \left (c x^n\right )\right ) \operatorname {PolyLog}\left (3,-\frac {f \sqrt {x}}{e}\right )-16 b^2 n^2 \operatorname {PolyLog}\left (4,-\frac {f \sqrt {x}}{e}\right ) \]

output
1/3*(a+b*ln(c*x^n))^3*ln(d*(e+f*x^(1/2)))/b/n-1/3*(a+b*ln(c*x^n))^3*ln(1+f 
*x^(1/2)/e)/b/n-2*(a+b*ln(c*x^n))^2*polylog(2,-f*x^(1/2)/e)+8*b*n*(a+b*ln( 
c*x^n))*polylog(3,-f*x^(1/2)/e)-16*b^2*n^2*polylog(4,-f*x^(1/2)/e)
 
3.2.25.2 Mathematica [A] (verified)

Time = 0.16 (sec) , antiderivative size = 263, normalized size of antiderivative = 1.81 \[ \int \frac {\log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2}{x} \, dx=\frac {1}{3} \left (\log \left (d \left (e+f \sqrt {x}\right )\right ) \log (x) \left (b^2 n^2 \log ^2(x)-3 b n \log (x) \left (a+b \log \left (c x^n\right )\right )+3 \left (a+b \log \left (c x^n\right )\right )^2\right )-3 \left (a-b n \log (x)+b \log \left (c x^n\right )\right )^2 \left (\log \left (1+\frac {f \sqrt {x}}{e}\right ) \log (x)+2 \operatorname {PolyLog}\left (2,-\frac {f \sqrt {x}}{e}\right )\right )-3 b n \left (a-b n \log (x)+b \log \left (c x^n\right )\right ) \left (\log \left (1+\frac {f \sqrt {x}}{e}\right ) \log ^2(x)+4 \log (x) \operatorname {PolyLog}\left (2,-\frac {f \sqrt {x}}{e}\right )-8 \operatorname {PolyLog}\left (3,-\frac {f \sqrt {x}}{e}\right )\right )-b^2 n^2 \left (\log \left (1+\frac {f \sqrt {x}}{e}\right ) \log ^3(x)+6 \log ^2(x) \operatorname {PolyLog}\left (2,-\frac {f \sqrt {x}}{e}\right )-24 \log (x) \operatorname {PolyLog}\left (3,-\frac {f \sqrt {x}}{e}\right )+48 \operatorname {PolyLog}\left (4,-\frac {f \sqrt {x}}{e}\right )\right )\right ) \]

input
Integrate[(Log[d*(e + f*Sqrt[x])]*(a + b*Log[c*x^n])^2)/x,x]
 
output
(Log[d*(e + f*Sqrt[x])]*Log[x]*(b^2*n^2*Log[x]^2 - 3*b*n*Log[x]*(a + b*Log 
[c*x^n]) + 3*(a + b*Log[c*x^n])^2) - 3*(a - b*n*Log[x] + b*Log[c*x^n])^2*( 
Log[1 + (f*Sqrt[x])/e]*Log[x] + 2*PolyLog[2, -((f*Sqrt[x])/e)]) - 3*b*n*(a 
 - b*n*Log[x] + b*Log[c*x^n])*(Log[1 + (f*Sqrt[x])/e]*Log[x]^2 + 4*Log[x]* 
PolyLog[2, -((f*Sqrt[x])/e)] - 8*PolyLog[3, -((f*Sqrt[x])/e)]) - b^2*n^2*( 
Log[1 + (f*Sqrt[x])/e]*Log[x]^3 + 6*Log[x]^2*PolyLog[2, -((f*Sqrt[x])/e)] 
- 24*Log[x]*PolyLog[3, -((f*Sqrt[x])/e)] + 48*PolyLog[4, -((f*Sqrt[x])/e)] 
))/3
 
3.2.25.3 Rubi [A] (verified)

Time = 0.59 (sec) , antiderivative size = 159, normalized size of antiderivative = 1.10, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.179, Rules used = {2822, 2775, 2821, 2830, 7143}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {\log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2}{x} \, dx\)

\(\Big \downarrow \) 2822

\(\displaystyle \frac {\log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^3}{3 b n}-\frac {f \int \frac {\left (a+b \log \left (c x^n\right )\right )^3}{\left (e+f \sqrt {x}\right ) \sqrt {x}}dx}{6 b n}\)

\(\Big \downarrow \) 2775

\(\displaystyle \frac {\log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^3}{3 b n}-\frac {f \left (\frac {2 \log \left (\frac {f \sqrt {x}}{e}+1\right ) \left (a+b \log \left (c x^n\right )\right )^3}{f}-\frac {6 b n \int \frac {\log \left (\frac {\sqrt {x} f}{e}+1\right ) \left (a+b \log \left (c x^n\right )\right )^2}{x}dx}{f}\right )}{6 b n}\)

\(\Big \downarrow \) 2821

\(\displaystyle \frac {\log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^3}{3 b n}-\frac {f \left (\frac {2 \log \left (\frac {f \sqrt {x}}{e}+1\right ) \left (a+b \log \left (c x^n\right )\right )^3}{f}-\frac {6 b n \left (4 b n \int \frac {\left (a+b \log \left (c x^n\right )\right ) \operatorname {PolyLog}\left (2,-\frac {f \sqrt {x}}{e}\right )}{x}dx-2 \operatorname {PolyLog}\left (2,-\frac {f \sqrt {x}}{e}\right ) \left (a+b \log \left (c x^n\right )\right )^2\right )}{f}\right )}{6 b n}\)

\(\Big \downarrow \) 2830

\(\displaystyle \frac {\log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^3}{3 b n}-\frac {f \left (\frac {2 \log \left (\frac {f \sqrt {x}}{e}+1\right ) \left (a+b \log \left (c x^n\right )\right )^3}{f}-\frac {6 b n \left (4 b n \left (2 \operatorname {PolyLog}\left (3,-\frac {f \sqrt {x}}{e}\right ) \left (a+b \log \left (c x^n\right )\right )-2 b n \int \frac {\operatorname {PolyLog}\left (3,-\frac {f \sqrt {x}}{e}\right )}{x}dx\right )-2 \operatorname {PolyLog}\left (2,-\frac {f \sqrt {x}}{e}\right ) \left (a+b \log \left (c x^n\right )\right )^2\right )}{f}\right )}{6 b n}\)

\(\Big \downarrow \) 7143

\(\displaystyle \frac {\log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^3}{3 b n}-\frac {f \left (\frac {2 \log \left (\frac {f \sqrt {x}}{e}+1\right ) \left (a+b \log \left (c x^n\right )\right )^3}{f}-\frac {6 b n \left (4 b n \left (2 \operatorname {PolyLog}\left (3,-\frac {f \sqrt {x}}{e}\right ) \left (a+b \log \left (c x^n\right )\right )-4 b n \operatorname {PolyLog}\left (4,-\frac {f \sqrt {x}}{e}\right )\right )-2 \operatorname {PolyLog}\left (2,-\frac {f \sqrt {x}}{e}\right ) \left (a+b \log \left (c x^n\right )\right )^2\right )}{f}\right )}{6 b n}\)

input
Int[(Log[d*(e + f*Sqrt[x])]*(a + b*Log[c*x^n])^2)/x,x]
 
output
(Log[d*(e + f*Sqrt[x])]*(a + b*Log[c*x^n])^3)/(3*b*n) - (f*((2*Log[1 + (f* 
Sqrt[x])/e]*(a + b*Log[c*x^n])^3)/f - (6*b*n*(-2*(a + b*Log[c*x^n])^2*Poly 
Log[2, -((f*Sqrt[x])/e)] + 4*b*n*(2*(a + b*Log[c*x^n])*PolyLog[3, -((f*Sqr 
t[x])/e)] - 4*b*n*PolyLog[4, -((f*Sqrt[x])/e)])))/f))/(6*b*n)
 

3.2.25.3.1 Defintions of rubi rules used

rule 2775
Int[(((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((f_.)*(x_))^(m_.))/((d_) 
+ (e_.)*(x_)^(r_)), x_Symbol] :> Simp[f^m*Log[1 + e*(x^r/d)]*((a + b*Log[c* 
x^n])^p/(e*r)), x] - Simp[b*f^m*n*(p/(e*r))   Int[Log[1 + e*(x^r/d)]*((a + 
b*Log[c*x^n])^(p - 1)/x), x], x] /; FreeQ[{a, b, c, d, e, f, m, n, r}, x] & 
& EqQ[m, r - 1] && IGtQ[p, 0] && (IntegerQ[m] || GtQ[f, 0]) && NeQ[r, n]
 

rule 2821
Int[(Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b 
_.))^(p_.))/(x_), x_Symbol] :> Simp[(-PolyLog[2, (-d)*f*x^m])*((a + b*Log[c 
*x^n])^p/m), x] + Simp[b*n*(p/m)   Int[PolyLog[2, (-d)*f*x^m]*((a + b*Log[c 
*x^n])^(p - 1)/x), x], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && IGtQ[p, 
0] && EqQ[d*e, 1]
 

rule 2822
Int[(Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))^(r_.)]*((a_.) + Log[(c_.)*(x_)^(n_ 
.)]*(b_.))^(p_.))/(x_), x_Symbol] :> Simp[Log[d*(e + f*x^m)^r]*((a + b*Log[ 
c*x^n])^(p + 1)/(b*n*(p + 1))), x] - Simp[f*m*(r/(b*n*(p + 1)))   Int[x^(m 
- 1)*((a + b*Log[c*x^n])^(p + 1)/(e + f*x^m)), x], x] /; FreeQ[{a, b, c, d, 
 e, f, r, m, n}, x] && IGtQ[p, 0] && NeQ[d*e, 1]
 

rule 2830
Int[(((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*PolyLog[k_, (e_.)*(x_)^(q_ 
.)])/(x_), x_Symbol] :> Simp[PolyLog[k + 1, e*x^q]*((a + b*Log[c*x^n])^p/q) 
, x] - Simp[b*n*(p/q)   Int[PolyLog[k + 1, e*x^q]*((a + b*Log[c*x^n])^(p - 
1)/x), x], x] /; FreeQ[{a, b, c, e, k, n, q}, x] && GtQ[p, 0]
 

rule 7143
Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_S 
ymbol] :> Simp[PolyLog[n + 1, c*(a + b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d 
, e, n, p}, x] && EqQ[b*d, a*e]
 
3.2.25.4 Maple [F]

\[\int \frac {{\left (a +b \ln \left (c \,x^{n}\right )\right )}^{2} \ln \left (d \left (e +f \sqrt {x}\right )\right )}{x}d x\]

input
int((a+b*ln(c*x^n))^2*ln(d*(e+f*x^(1/2)))/x,x)
 
output
int((a+b*ln(c*x^n))^2*ln(d*(e+f*x^(1/2)))/x,x)
 
3.2.25.5 Fricas [F]

\[ \int \frac {\log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2}{x} \, dx=\int { \frac {{\left (b \log \left (c x^{n}\right ) + a\right )}^{2} \log \left ({\left (f \sqrt {x} + e\right )} d\right )}{x} \,d x } \]

input
integrate((a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2)))/x,x, algorithm="fricas")
 
output
integral((b^2*log(c*x^n)^2 + 2*a*b*log(c*x^n) + a^2)*log(d*f*sqrt(x) + d*e 
)/x, x)
 
3.2.25.6 Sympy [F(-1)]

Timed out. \[ \int \frac {\log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2}{x} \, dx=\text {Timed out} \]

input
integrate((a+b*ln(c*x**n))**2*ln(d*(e+f*x**(1/2)))/x,x)
 
output
Timed out
 
3.2.25.7 Maxima [F]

\[ \int \frac {\log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2}{x} \, dx=\int { \frac {{\left (b \log \left (c x^{n}\right ) + a\right )}^{2} \log \left ({\left (f \sqrt {x} + e\right )} d\right )}{x} \,d x } \]

input
integrate((a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2)))/x,x, algorithm="maxima")
 
output
integrate((b*log(c*x^n) + a)^2*log((f*sqrt(x) + e)*d)/x, x)
 
3.2.25.8 Giac [F]

\[ \int \frac {\log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2}{x} \, dx=\int { \frac {{\left (b \log \left (c x^{n}\right ) + a\right )}^{2} \log \left ({\left (f \sqrt {x} + e\right )} d\right )}{x} \,d x } \]

input
integrate((a+b*log(c*x^n))^2*log(d*(e+f*x^(1/2)))/x,x, algorithm="giac")
 
output
integrate((b*log(c*x^n) + a)^2*log((f*sqrt(x) + e)*d)/x, x)
 
3.2.25.9 Mupad [F(-1)]

Timed out. \[ \int \frac {\log \left (d \left (e+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2}{x} \, dx=\int \frac {\ln \left (d\,\left (e+f\,\sqrt {x}\right )\right )\,{\left (a+b\,\ln \left (c\,x^n\right )\right )}^2}{x} \,d x \]

input
int((log(d*(e + f*x^(1/2)))*(a + b*log(c*x^n))^2)/x,x)
 
output
int((log(d*(e + f*x^(1/2)))*(a + b*log(c*x^n))^2)/x, x)